package hn.cch.druid.repository;

import hn.cch.druid.query.Where;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.repository.NoRepositoryBean;

import java.io.Serializable;
import java.util.List;

/**
 * @author CCH
 * @version 2018.08.30
 */
@NoRepositoryBean
public interface DruidRepository<T, ID extends Serializable> extends JpaRepository<T, ID> {

    /**
     * 条件查询
     *
     * @param where
     * @return
     */
    public List<T> findWhere(Where where);

}
